/**
 * 
 */
package com.domesticmouse.waveoteditor.client.ops;

import java.io.Serializable;
import java.util.HashMap;

import com.domesticmouse.waveoteditor.client.wave.model.document.operation.impl.AttributesImpl;
import com.domesticmouse.waveoteditor.client.wave.model.document.operation.impl.DocOpBuilder;

@SuppressWarnings("serial")
public class ElementStartDocOpComponent implements DocOpComponent, Serializable {
	private String type;
	private HashMap<String, String> attributes;

	public void setType(String type) {
		this.type = type;
	}

	public void setAttributes(HashMap<String, String> attributes) {
		this.attributes = attributes;
	}

	@Override
	public void build(DocOpBuilder builder) {
		builder.elementStart(type, new AttributesImpl(attributes));
	}

}